package com.atguigu.jxc.dao;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Supplier;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SupplierDao {
    //查询供应商列表
    List<Supplier> selectSupplierList(Integer page, Integer rows,String supplierName);
    //添加供应商
    Integer insertSupplier(Supplier supplier);
    //修改供应商信息
    Integer updateSupplier(Supplier supplier);
    //根据名称查询供应商信息
    Supplier selectSupplierByName(String supplierName);
    //删除供应商
    void deleteById(Integer supplierId);

    List<Supplier> getComboboxList(String q);

    Supplier getSupplierById(Integer supplierId);
}
